package com.leadnews.wemedia;

import com.leadnews.wemedia.config.EnableFeignFallback;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;


@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignFallback
@MapperScan("com.leadnews.wemedia.mapper")
//开启feign远程调用
@EnableFeignClients(basePackages = "com.leadnews.apis")
//开启异步调用
@EnableAsync
public class WemediaApplication {

    public static void main(String[] args) {
        SpringApplication.run(WemediaApplication.class,args);
    }
}
